package xu.otherapk

import android.os.Bundle
import android.util.Log
import androidx.fragment.app.FragmentActivity
import xu.plugin.PluginInterface

open class BaseActivity : PluginInterface {
    var mContext: FragmentActivity? = null
    
    open fun getLogTag() = BaseActivity::class.simpleName
    
    fun loge(msg: Any?) = Log.e(getLogTag(), msg.toString())

    override fun attachContext(context: FragmentActivity?) {
        mContext = context
    }

    override fun onCreate(saveInstance: Bundle?) {
        loge("onCreate")
    }

    override fun onStart() {
        loge("onStart")
    }

    override fun onResume() {
        loge("onResume")
    }

    override fun onRestart() {
        loge("onRestart")
    }

    override fun onPause() {
        loge("onPause")
    }

    override fun onStop() {
        loge("onStop")
    }

    override fun onDestroy() {
        loge("onDestroy")
    }


}